home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / dev / gcc / libnixV0_8.lha / gnu / libnix-sources.lha / sources / nix / extra / fdtofh.c < prev    next >
Encoding:
Text File  |  1995-03-23  |  372 b   |  15 lines

  1. /*
  2.  * Get the AmigaDOS FileHandle from the filedescriptor.
  3.  * Be careful when mixing both kinds of I/O (flush() between changing).
  4.  *
  5.  * DICE has such a function SAS has not.
  6.  * It's not ANSI but it's encapsulated and may be useful - so why not :-).
  7.  * 
  8.  */
  9. unsigned long *__stdfiledes;
  10.  
  11. unsigned long fdtofh(int filedescriptor)
  12. {
  13.   return __stdfiledes[filedescriptor];
  14. }
  15.